.center(@offset: 0) {
    display: block;
    position: absolute;
    top: @offset;
    bottom: @offset;
    left: @offset;
    right: @offset;
    margin: auto;
}

